package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
* <p>
* 岗位调动申请表
* </p>
*
* @author wsl
* @since 2022-05-07
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("position_transfer")
@ApiModel(value = "PositionTransfer对象", description = "岗位调动申请表")
public class PositionTransfer implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("流程编号")
    private Integer processId;

    @ApiModelProperty("申请员工编号")
    private Integer empId;

    @ApiModelProperty("员工上级编号")
    private Integer supeNumber;

    @ApiModelProperty("岗位调动标题")
    private String title;

    @ApiModelProperty("部门编号")
    private Integer deptId;

    @ApiModelProperty("申请原因")
    private String cause;

    @ApiModelProperty("现部门编号")
    private Integer originalDeptId;

    @ApiModelProperty("现岗位编号")
    private Integer originalPositionId;

    @ApiModelProperty("目标部门编号")
    private Integer targetDeptId;

    @ApiModelProperty("暂存 部门名称")
    private String targetDeptName;

    @ApiModelProperty("目标岗位编号")
    private Integer targetPositionId;

    @ApiModelProperty("暂存 岗位名称")
    private String targetPositionName;

    @ApiModelProperty("当前状态")
    private Integer status;

    @ApiModelProperty("调动时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date transferTime;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("逻辑删除")
    private Integer delete;

}
